﻿@{
    Layout = null;
}
<html>
<head>
    <meta charset="utf-8">
    <title>MOOC视频网站</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="~/Areas/FG_Background_UI/Css/adminStyle.css" rel="stylesheet" type="text/css"/>
    <title>MOOC网站管理系统</title>
    <script type="text/javascript" src="~/Areas/FG_Background_UI/js/jquery1.js"></script>
    <script type="text/javascript">
	$(document).ready(
			function() {
				$(".div2").click(
						function() {
							$(this).next("div").slideToggle("slow").siblings(
									".div3:visible").slideUp("slow");
						});
			});
	function openurl(url) {
		var rframe = parent.document.getElementById("rightFrame");
		rframe.src = url;
	}
    </script>
    <style>
        body {
            margin: 0;
            font-family: 微软雅黑;
            background-image: url(~/Areas/FG_Background_UI/images/.jpg);
            background-repeat: no-repea;
            background-size: cover;
            background-attachment: fixed;
            background-color: #DDDDDD;
        }

        .top1 {
            position: absolute;
            top: 0px;
            width: 100%;
            height: 20px;
            text-align: center;
            color: #FFFFFF;
            font-size: 17px;
            font-height: 20px;
            font-family: 楷体;
            background-color: #888888;
        }

        .title {
            float: left;
            margin: -32px 20px;
            font-size: 40px;
            color: #FFFFFF;
            font-height: 55px;
            font-family: 隶书;
        }

        .top2 {
            position: absolute;
            top: 20px;
            width: 100%;
            height: 77px;
            text-align: center;
            color: #ccffff;
            background-color: #888888;
        }

        .left {
            position: absolute;
            left: 0px;
            top: 97px;
            width: 200px;
            height: 85%;
            border-right: 1px solid #9370DB;
            color: #000000;
            font-size: 20px;
            text-align: center;
            background-color: #B3B3B3;
        }

        .right {
            position: absolute;
            left: 200px;
            top: 97px;
            width: 85.2%;
            height: 85%;
            border-top: 0px solid #484860;
            font-size: 14px;
            text-align: center;
        }

        .end {
            position: absolute;
            bottom: 0px;
            width: 100%;
            height: 30px;
            text-align: center;
            color: #556B2F;
            font-size: 17px;
            font-height: 20px;
            font-family: 楷体;
            background-color: #C0C0C0;
        }

        .div1 {
            text-align: center;
            width: 200px;
            padding-top: 10px;
        }

        .div2 {
            height: 40px;
            line-height: 40px;
            cursor: pointer;
            font-size: 18px;
            position: relative;
            border-bottom: #ccc 0px dotted;
        }

        .spgl {
            position: absolute;
            height: 20px;
            width: 20px;
            left: 40px;
            top: 10px;
            background: url('../../images/1.png');
        }

        .yhgl {
            position: absolute;
            height: 20px;
            width: 20px;
            left: 40px;
            top: 10px;
            background-image: url('../../images/4.png');
            /*background: url('../../images/4.png');*/
        }

        .gggl {
            position: absolute;
            height: 20px;
            width: 20px;
            left: 40px;
            top: 10px;
            background-image: url('../../images/4.png');
            /*background: url('../../images/4.png');*/
        }

        .zlgl {
            position: absolute;
            height: 20px;
            width: 20px;
            left: 40px;
            top: 10px;
            background: url('../../images/4.png');
        }

        .pjgl {
            position: absolute;
            height: 20px;
            width: 20px;
            left: 40px;
            top: 10px;
            background: url('../../images/4.png');
        }

        .tcht {
            position: absolute;
            height: 20px;
            width: 20px;
            left: 40px;
            top: 10px;
            background-image: url('../../images/2.png');
            /*background: url('../../images/2.png');*/
        }

        .div3 {
            display: none;
            cursor: pointer;
            font-size: 15px;
        }

            .div3 ul {
                margin: 0;
                padding: 0;
            }

            .div3 li {
                height: 30px;
                line-height: 30px;
                list-style: none;
                border-bottom: #ccc 1px dotted;
                text-align: center;
            }

        .a {
            text-decoration: none;
            color: #000000;
            font-size: 15px;
        }

        .a1 {
            text-decoration: none;
            color: #000000;
            font-size: 18px;
        }
    </style>
</head>
<body>

    <div class="top1">
        <marquee scrollamount=2 width=300>飞哥滑雪网，带给你不一样的滑雪体验</marquee>
    </div>
    <div class="top2">
        <div class="logo">
            <img src="~/Areas/FG_Background_UI/images/admin_logo.png" title="在哪儿" />
        </div>
        <div class="title">
            <h3>飞哥滑雪网后台管理系统</h3>
        </div>
        <div class="fr top-link">
            <a href="admin_list.html" target="mainCont" title="DeathGhost">
                <i class="adminIcon"></i><span>管理员：Admin</span>
            </a>
        </div>
    </div>
    <div class="left">
        <div class="div1">
            <div class="left_top">
                <img src="~/Areas/FG_Background_UI/images/bbb_01.jpg"><img src="~/Areas/FG_Background_UI/images/bbb_02.jpg"
                                                  id="2"><img src="~/Areas/FG_Background_UI/images/bbb_03.jpg"><img src="~/Areas/FG_Background_UI/images/bbb_04.jpg" />
            </div>
            @*<div class="div2" hidden="hidden">
                <div class="yhgl"></div>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前台用户管理
            </div>*@
            <div class="div2" hidden="hidden">前台用户管理</div>
            <div class="div3">
                <ul>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/Disabled');">用户禁用</a>
                    </li>
                </ul>
            </div>
            @*<div class="div2" hidden="hidden">
                <div class="spgl"></div>
                视频管理
            </div>*@
            <div class="div2" hidden="hidden">视频管理</div>
            <div class="div3">
                <li>
                    <a class="a" href="javascript:void(0);"
                       onclick="openurl('/FG_Background_UI/Admin/videoQuery');">教学视频</a>
                </li>
                <li>
                    <a class="a" href="javascript:void(0);"
                       onclick="openurl('/FG_Background_UI/Admin/videosAdd');">炫酷视频</a>
                </li>
                
            </div>
            @*<div class="div2" hidden="hidden">
                <div class="spgl"></div>
                票务管理
            </div>*@
            <div class="div2" hidden="hidden">票务管理</div>
            <div class="div3">
                <ul>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/documentQuery');">票价调整</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/userdocumentQuery');">订单管理</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/usernodocumentQuery');">退票管理</a>
                    </li>
                </ul>
            </div>
            <!--<div class="div2">
                <div class="spgl"></div>
                类别管理
            </div>
            <div class="div3">
                <ul>
                    <li><a class="a" href="javascript:void(0);"
                        onClick="openurl('classQuery');">大类信息</a></li>

                </ul>
            </div>-->
            @*<div class="div2" hidden="hidden">
                <div class="yhgl"></div>
                用户管理
            </div>*@
            <div class="div2" hidden="hidden">用户管理</div>
            <div class="div3">
                <ul>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/studentQuery');">添加用户</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/teacherQuery');">删除用户</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/authorize');">用户授权</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/Disabled');">用户禁用</a>
                    </li>
                </ul>
            </div>


            @*<div class="div2" hidden="hidden">
                <div class="gggl"></div>
                评价管理
            </div>*@
            <div class="div2" hidden="hidden">评价管理</div>
            <div class="div3">

                <ul>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/deletecomment');">评价删除</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/useredit');">用户禁言</a>
                    </li>
                </ul>
            </div>
            @*<div class="div2" hidden="hidden">
                <div class="spgl"></div>
                公告管理
            </div>*@
            <div class="div2" hidden="hidden">公告管理</div>
            <div class="div3">
                <ul>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/afficheQuery');">查看公告</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/afficheEdit');">添加公告</a>
                    </li>
                </ul>
            </div>
            <div class="div2" hidden="hidden">新闻管理</div>
            <div class="div3">
                <ul>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/NewsAdd');">添加新闻</a>
                    </li>
                    <li>
                        <a class="a" href="javascript:void(0);"
                           onclick="openurl('/FG_Background_UI/Admin/SearchNews');">查看新闻</a>
                    </li>
                </ul>
            </div>
            <a class="a1" href="/FG_Background_UI/Admin/login">
                <div class="div2">退出后台</div>
            </a>
        </div>
    </div>

    <div class="right">
        <iframe id="rightFrame" name="rightFrame" width="100%" height="100%"
                scrolling="auto" marginheight="0" marginwidth="0" align="center"
                style="border: 0px solid #CCC; margin: 0; padding: 0;"></iframe>
    </div>
</body>
</html>
<script>
            $.ajax({
                type: "post",
                url: "/FG_Background_UI/Admin/IndexReady",
                data:{RID:@ViewBag.RID},
                cache:false,
                success: function (data) {
                    $(data).each(function (i,t) {
                        $(".div2").each(function (index, item) {
                            if (t.Admins_Power_Url == $(item).html())
                            {
                                $(item).removeAttr("hidden");
                            }
                        })
                    })
                },
                error: function () {
                    alert("出错了")
                }
            })
   
</script>

